﻿namespace Red.Controls.Shell
{
    public class GameDataLogReporter : GameData.Raw.IGenericFileErrorReporter
    {
        #region Properties

        public string ErrorMessage { get; private set; }

        #endregion Properties

        #region Public methods

        public void Clear()
        {
            ErrorMessage = string.Empty;
        }

        #endregion Public methods

        #region IGenericFileErrorReporter implementation

        public void StartFile( string filePath ) { }

        public void Error( string error )
        {
            ErrorMessage += error + "\r\n";
        }

        public void TotalProgress( int current, int total ) { }
        public void FileProggres( int current, int total ) { }

        #endregion IGenericFileErrorReporter implementation
    }
}
